<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ExcelTool</title>
    <script src="js/axios.js" type="text/javascript"></script>
    <script src="js/request.js" type="text/javascript"></script>
    <link rel="stylesheet" href="css/home.css">
</head>
<body>

<div align="center" style="width: 50%; line-height: 50px">
    <div>
        <input type="button" value="导入表格" onclick="importTable()">
        <select id="currentName" onchange="selectTable()">
            <option style="display: none" selected value="" hidden>请选择...</option>
        </select>
        <input type="button" value="导出表格" onclick="exportTable()">
        <div style="display: block">
            <table id="tb" border="1"></table>
<!--            <button id="up">上一页</button>-->
<!--            <div id="page" class="page">-->
<!--                <span>1</span>-->
<!--                <span>2</span>-->
<!--                <span>3</span>-->
<!--                <span>...</span>-->
<!--                <span>19</span>-->
<!--            </div>-->
<!--            <button id="down" onclick="">下一页</button>-->
        </div>
    </div>


    <div id="dialogView" class="button-container">
        <form enctype="multipart/form-data" onsubmit="return false">
            <input type="file" style="display: none" id="upload" onchange="selectFile()"> <br/>
            表名: <input id="tabName" type="text" placeholder="输入表名(可选)"> <br/>
            <span id="result"></span> <br/>
            <input type="button" value="选择文件" onclick="getFile()">
            <button type="submit" onclick="uploadFile()">导入文件</button>
            <button type="button" onclick="unImport()">取消</button>
        </form>
    </div>

</div>


</body>
</html>